import java.util.ArrayList;
import java.util.List;

public class Text {
    public static void main(String[] args) {
        List<Vehicle> vehicles = new ArrayList<>();

        vehicles.add(new Car("Toyota", 5));
        vehicles.add(new Truck("Volvo", 10000));
        vehicles.add(new Bus("Mercedes", 30));
        vehicles.add(new Bicycle("Giant"));

        for (Vehicle vehicle : vehicles) {
            vehicle.drive();
            vehicle.displayInfo();
        }
    }
}